package nc;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.text.DecimalFormat;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Q21320 {

    public static int negativeCount(List<Integer> nums) {
        int j = 0;
        for (Integer num : nums) {
            if (num < 0) {
                j++;
            }
        }
        return j;
    }

    public static double unNegativeMean(List<Integer> nums, int positiveNums) {
        System.out.println(positiveNums);
        if (positiveNums == 0) {
            return 0.0;
        }
        double sum = 0.0;
        for (int num : nums) {
            if (num > 0) {
                sum += num;
            }
            if (num == 0) {
                positiveNums --;
            }
        }
        if (positiveNums == 0) {
            return 0;
        }
        System.out.println(sum);
        return sum / positiveNums;
    }

    public static void main(String[] args) throws FileNotFoundException {
        Scanner scanner = new Scanner(new FileInputStream("Q21320.txt"));
        List<Integer> list = new LinkedList<>();
        while (scanner.hasNext()) {
            final int i = scanner.nextInt();
            list.add(i);
        }
        System.out.println(list.size());
        final int i = negativeCount(list);
        System.out.print(i);
        System.out.print("\t");
        DecimalFormat format = new DecimalFormat("0.0");
        System.out.println(format.format(unNegativeMean(list, list.size() - i)));
    }

}
